package com.hxgz.steel.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@ApiModel("地址对象模型")
@Data
public class Address {
    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("用户id")
    private Long userId;

    @ApiModelProperty(value = "省",required = true)
    private String province;

    @ApiModelProperty(value ="市",required = true)
    private String city;

    @ApiModelProperty(value ="区",required = true)
    private String area;

    @ApiModelProperty(value ="详细地址",required = true)
    private String address;

    @ApiModelProperty(value ="联系人",required = true)
    private String name;

    @ApiModelProperty(value ="联系人电话",required = true)
    private String phone;

    @ApiModelProperty("状态(0为默认,1非默认)")
    private Integer status;

    @ApiModelProperty("是否删除 1-是 2-否")
    private Integer type;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty("修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updataTime;
}